<template>
  <div>
    我是副组件b
    <ul>
      <li v-for="value in arr" :key="value">
        {{ value }}
      </li>
    </ul>
  </div>
</template>
<script>
import bus from "../bus";
export default {
  data() {
    return {
      arr: [],
    };
  },
  created() {
    bus.$on("send", val=>{
        this.arr.push(val)
    });
  },
};
</script>
